home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / cacheviewer-0.4.7.1-fx.xpi / chrome / cacheviewer.jar / content / cacheviewer / cacheviewer.xul < prev    next >
Extensible Markup Language  |  2008-04-13  |  7KB  |  167 lines

  1. <?xml version="1.0"?>
  2. <!DOCTYPE page SYSTEM "chrome://cacheviewer/locale/cacheviewer.dtd" >
  3. <!-- ***** BEGIN LICENSE BLOCK *****
  4.    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
  5.    -
  6.    - The contents (ry
  7.    -
  8.    - ***** END LICENSE BLOCK ***** -->
  9.    
  10. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  11. <?xml-stylesheet href="chrome://cacheviewer/content/cacheviewer.css" type="text/css"?>
  12.  
  13. <window id="cacheviewer"
  14.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  15.         xmlns:html="http://www.w3.org/1999/xhtml"
  16.         title="&window.title;"
  17.         width="640" height="480"
  18.         onload="CacheViewer.init();"
  19.         onunload="CacheViewer.finish();"
  20.         persist="width height screenX screenY sizemode"
  21.         windowtype="CacheViewer">
  22.     
  23.     <stringbundleset id="strbundles">
  24.         <stringbundle id="strings" src="chrome://cacheviewer/locale/cacheviewer.properties"/>
  25.     </stringbundleset>
  26.     
  27.     <script type="application/x-javascript" src="chrome://cacheviewer/content/cacheviewer.js"/>
  28.     <script type="application/x-javascript" src="chrome://cacheviewer/content/rdf.js"/>
  29.     <script type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"/>
  30.     
  31.     <commandset id="mainCommandSet">
  32.         <command id="cmd_delete" oncommand="CacheViewer.deleteCache();"/>
  33.         <command id="cmd_open" oncommand="CacheViewer.openCache();"/>
  34.         <command id="cmd_reload" oncommand="CacheViewer.reloadCache();"/>
  35.         <command id="cmd_save" oncommand="CacheViewer.saveCache();"/>
  36.     </commandset>
  37.     
  38.     <keyset>
  39.         <key id="key_delete" keycode="VK_DELETE" command="cmd_delete"/>
  40.         <key id="key_open" keycode="VK_ENTER" command="cmd_open"/>
  41.         <key id="key_open" keycode="VK_RETURN" command="cmd_open"/>
  42.         <key id="key_reload" keycode="VK_F5" command="cmd_reload"/>
  43.         <key id="key_save" keycode="S" command="cmd_save" modifiers="accel"/>
  44.     </keyset>
  45.     
  46.     <popupset>
  47.         <popup id="viewerPopup" onpopupshowing="CacheViewer.onPopupShowing();">
  48.             <menuitem label="&open.label;" accesskey="&open.accesskey;"
  49.                       oncommand="CacheViewer.openCache();"/>
  50.             <menuitem label="&save.label;" accesskey="&save.accesskey;"
  51.                       oncommand="CacheViewer.saveCache();"/>
  52.             <menuitem label="&delete.label;" accesskey="&delete.accesskey;"
  53.                       oncommand="CacheViewer.deleteCache();"
  54.                       id="deleteCache"/>
  55.         </popup>
  56.     </popupset>
  57.     
  58.     <hbox id="top-part" persist="height">
  59.         <box id="image-container" onclick="CacheViewer.resize();" width="240" height="180" persist="width">
  60.             <hbox id="container" pack="center" flex="1">
  61.                 <vbox id="imageContainer" pack="center">
  62.                     <image id="previewImage"/>
  63.                 </vbox>
  64.             </hbox>
  65.         </box>
  66.         
  67.         <splitter id="v-splitter"/>
  68.         
  69.         <vbox flex="1">
  70.             <textbox id="cacheInfo" readonly="true" multiline="true" flex="1" wrap="off"/>
  71.             <hbox align="center">
  72.                 <label value="&search.label;" accesskey="&search.accesskey;" control="search"/>
  73.                 <textbox id="search" flex="1" type="timed"
  74.                              timeout="500" oncommand="CacheViewer.search(this.value);"/>
  75.                 <button id="showall" label="&showall.label;" accesskey="&showall.accesskey;"
  76.                         oncommand="CacheViewer.showAll();" disabled="true"/>
  77.             </hbox>
  78.         </vbox>
  79.     </hbox>
  80.     
  81.     <splitter id="h-splitter"/>
  82.     
  83.     <tree id="cacheTree" datasources="rdf:null"
  84.             flex="1" enableColumnDrag="true" flags="dont-build-content"
  85.             context="viewerPopup" onselect="CacheViewer.onSelect();" ondblclick="CacheViewer.openCache();">
  86.         <treecols>
  87.             <treecol id="key" label="&key.label;" flex="8" ignoreincolumnpicker="true"
  88.                          sort="rdf:http://park2.wakwak.com/~benki/cacheviewer#key"
  89.                          persist="width hidden ordinal sortActive sortDirection"/>
  90.             <splitter class="tree-splitter"/>
  91.             <treecol id="size" label="&size.label;" flex="1"
  92.                          sort="rdf:http://park2.wakwak.com/~benki/cacheviewer#size"
  93.                          persist="width hidden ordinal sortActive sortDirection"/>
  94.             <splitter class="tree-splitter"/>
  95.             <treecol id="type" label="&type.label;" flex="1"
  96.                          sort="rdf:http://park2.wakwak.com/~benki/cacheviewer#type"
  97.                          persist="width hidden ordinal sortActive sortDirection"/>
  98.             <splitter class="tree-splitter"/>
  99.             <treecol id="device" label="&device.label;" flex="1"
  100.                          sort="rdf:http://park2.wakwak.com/~benki/cacheviewer#dev"
  101.                          persist="width hidden ordinal sortActive sortDirection"/>
  102.             <splitter class="tree-splitter"/>
  103.             <treecol id="lastFetched" label="&lastFetched.label;" flex="1"
  104.                          sort="rdf:http://park2.wakwak.com/~benki/cacheviewer#fet"
  105.                          persist="width hidden ordinal sortActive sortDirection"/>
  106.             <splitter class="tree-splitter"/>
  107.             <treecol id="lastModified" label="&lastModified.label;" flex="1"  hidden="true"
  108.                          sort="rdf:http://park2.wakwak.com/~benki/cacheviewer#mod"
  109.                          persist="width hidden ordinal sortActive sortDirection"/>
  110.             <splitter class="tree-splitter"/>
  111.             <treecol id="expirationTime" label="&expirationTime.label;" flex="1" hidden="true"
  112.                          sort="rdf:http://park2.wakwak.com/~benki/cacheviewer#exp"
  113.                          persist="width hidden ordinal sortActive sortDirection"/>
  114.             <splitter class="tree-splitter"/>
  115.             <treecol id="fetchCount" label="&fetchCount.label;" flex="1" hidden="true"
  116.                          sort="rdf:http://park2.wakwak.com/~benki/cacheviewer#cnt"
  117.                          persist="width hidden ordinal sortActive sortDirection"/>
  118.         </treecols>
  119.         
  120.         <template>
  121.             <treechildren>
  122.                 <treeitem uri="rdf:*">
  123.                     <treerow>
  124.                         <treecell label="rdf:http://park2.wakwak.com/~benki/cacheviewer#key"/>
  125.                         <treecell label="rdf:http://park2.wakwak.com/~benki/cacheviewer#size"/>
  126.                         <treecell label="rdf:http://park2.wakwak.com/~benki/cacheviewer#type"/>
  127.                         <treecell label="rdf:http://park2.wakwak.com/~benki/cacheviewer#dev"/>
  128.                         <treecell label="rdf:http://park2.wakwak.com/~benki/cacheviewer#fet"/>
  129.                         <treecell label="rdf:http://park2.wakwak.com/~benki/cacheviewer#mod"/>
  130.                         <treecell label="rdf:http://park2.wakwak.com/~benki/cacheviewer#exp"/>
  131.                         <treecell label="rdf:http://park2.wakwak.com/~benki/cacheviewer#cnt"/>
  132.                     </treerow>
  133.                 </treeitem>
  134.             </treechildren>
  135.         </template>
  136.     </tree>
  137.     
  138.     <statusbar>
  139.         <statusbarpanel>
  140.             <label value="&memory.label;"/>
  141.             <label id="memoryEntries"/>
  142.             <stack>
  143.                 <progressmeter id="memoryMeter" mode="determined"/>
  144.                 <hbox pack="center">
  145.                     <vbox pack="center">
  146.                         <label id="memory"/>
  147.                     </vbox>
  148.                 </hbox>
  149.             </stack>
  150.         </statusbarpanel>
  151.         <statusbarpanel>
  152.             <label value="&disk.label;"/>
  153.             <label id="diskEntries"/>
  154.             <stack>
  155.                 <progressmeter id="diskMeter" mode="determined"/>
  156.                 <hbox pack="center">
  157.                     <vbox pack="center">
  158.                         <label id="disk"/>
  159.                     </vbox>
  160.                 </hbox>
  161.             </stack>
  162.         </statusbarpanel>
  163.         <spacer flex="1"/>
  164.         <toolbarbutton id="reload" command="cmd_reload" tooltiptext="&reload.tooltip;"/>
  165.     </statusbar>
  166.     
  167. </window>